Search
InternalUtils.LinearGradient Method
See Also
 






Creates a linear gradient brush with the specified blend and orientation angle.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public static LinearGradientBrush LinearGradient (
    double angle,
    Object[] positionsAndColors
)

Visual Basic  Copy Code

Public Shared Function LinearGradient( _
    angle As Double, _
    positionsAndColors() As Object _
) As LinearGradientBrush

 Parameters

angle

The angle of the linear gradient.

positionsAndColors

An alternating sequence of double and Color pairs where each pair defines a gradient stop. The positions in the sequence need to be in ascending order.

 Return Value

An instance of the LinearGradientBrush class corresponding to the specified settings.

 Remarks

This method supports the MindFusion.Diagramming for .NET MAUI infrastructure and is not intended to be used directly from your code.

 See Also